/**
 * 
 */
package com.sign.signsystem;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Handler;
import android.os.Message;
import android.view.View.OnClickListener;
import android.widget.Toast;

/**
 * @author Bosto
 * 
 */
public abstract class HandlerActivity extends Activity implements
		OnClickListener {
	@SuppressLint("HandlerLeak")
	protected Handler mHandler = new Handler() {
		@Override
		public void handleMessage(Message msg) {
			hanldeMessage(msg);
		}

	};

	abstract void hanldeMessage(Message msg);

	protected void showLongMessage(int message) {
		Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT)
				.show();
	}
	
	protected void showLongMessage(String message) {
		Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT)
				.show();
	}
	
	
	protected void showShortMessage(String message) {
		Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT)
				.show();
	}
	
	protected void showShortMessage(int message) {
		Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT)
				.show();
	}
}
